<?php
include_once('config_start.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script src="jquery-1.2.1.min.js" type="text/javascript"></script>
<script src="consts.js" type="text/javascript"></script>
<title>Admin Control Panel</title>
<LINK href="admin_panel.css" rel="stylesheet" type="text/css">
</head>
<?php
// the name of the file to include
$file_inc = "home.view.php";
if(isset($_GET['action']))
{
    switch($_GET['action'])
    {
        case 11:    $file_inc="userlist.view.php";
                    break;
        case 12:    $file_inc="adduser.view.php";
                    break;
        case 13:    $file_inc="userlist.view.php";
                    break;
        case 14:    $file_inc="profile.view.php";
                    break;
        case 21:    $file_inc="userlist.view.php";
                    break;
        case 22:    $file_inc="userlist.view.php";
                    break;
        case 23:    $file_inc="userlist.view.php";
                    break;
    }
}
?>
<body>
<div align='center'>
<div id="header"><?php require('views/admin_header.php');?></div>
<div id="lower-header"><?php require('views/admin_lower-header.php');?></div>
<div id="leftcol">
<?php require('views/admin_leftbar.php');?>
</div>
<div id="content">
<?php include_once($file_inc); ?>
<div id="footer"><?php require('views/admin_footer.php');?></div>
</div>
</body>
</html> 
